/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Client.java
 *
 * Created on 21-nov-2011, 18:51:35
 */
package edu.uoc.tdp.pac4.only5.gui.client;

import java.awt.FlowLayout;
import java.util.ResourceBundle;
import javax.swing.JLabel;

/**
 *
 * @author Gerard
 */
public class Client extends javax.swing.JFrame {

    private static ResourceBundle resourceBundle;
       
    /** Creates new form Client */
    public Client() {
        initComponents();
        this.setLayout(new FlowLayout());
        resourceBundle = ResourceBundle.getBundle(Client.class.getName());
        setLabels();
        configureViewDependsOfRole();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnClient = new javax.swing.JButton();
        btnTecnic = new javax.swing.JButton();
        btnAdministrador = new javax.swing.JButton();
        btnAules = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        btnClient.setText("Client");
        btnClient.setName("btnClient"); // NOI18N
        btnClient.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnClientActionPerformed(evt);
            }
        });

        btnTecnic.setText("Tecnic");
        btnTecnic.setName("btnTecnic"); // NOI18N
        btnTecnic.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTecnicActionPerformed(evt);
            }
        });

        btnAdministrador.setText("Administrador");
        btnAdministrador.setName("btnAdministrador"); // NOI18N
        btnAdministrador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAdministradorActionPerformed(evt);
            }
        });

        btnAules.setText("aules");
        btnAules.setName("btnAules"); // NOI18N
        btnAules.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAulesActionPerformed(evt);
            }
        });

        jButton1.setText("Manteniment");
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMantenimentActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(107, 107, 107)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnAules)
                    .addComponent(btnClient))
                .addGap(36, 36, 36)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(btnTecnic)
                        .addGap(49, 49, 49)
                        .addComponent(btnAdministrador))
                    .addComponent(jButton1))
                .addContainerGap(113, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(139, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnAdministrador)
                    .addComponent(btnTecnic)
                    .addComponent(btnClient))
                .addGap(37, 37, 37)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnAules)
                    .addComponent(jButton1))
                .addGap(72, 72, 72))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnClientActionPerformed
        ConnexioFrame page = new ConnexioFrame(); 
        page.setVisible(true);
    }//GEN-LAST:event_btnClientActionPerformed

    private void btnAdministradorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAdministradorActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnAdministradorActionPerformed

    private void btnTecnicActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTecnicActionPerformed
                                        
        ConnexioFrame page = new ConnexioFrame(); 
        page.setVisible(true);
    }//GEN-LAST:event_btnTecnicActionPerformed

    private void btnAulesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAulesActionPerformed
        // TODO add your handling code here:
        AulesFrame page = new AulesFrame(); 
        page.setVisible(true);
    }//GEN-LAST:event_btnAulesActionPerformed

private void btnMantenimentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMantenimentActionPerformed
// TODO add your handling code here:
        MantenimentFrame pageM = new MantenimentFrame();
        pageM.setVisible(true);
}//GEN-LAST:event_btnMantenimentActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Client.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Client.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Client.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Client.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Client().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAdministrador;
    private javax.swing.JButton btnAules;
    private javax.swing.JButton btnClient;
    private javax.swing.JButton btnTecnic;
    private javax.swing.JButton jButton1;
    // End of variables declaration//GEN-END:variables

    private void setLabels() {
      
    }

    private String getText(String key) {
        return resourceBundle.getString(key);
    }

    private void desactivarPanels() {
      
    }

    private void configureViewDependsOfRole() {
      
    }
}
